package com.da.javalog.check.checker;

import com.da.javalog.check.CheckRule;
import com.da.javalog.check.core.CheckBean;
import com.da.javalog.check.core.CheckException;
import com.da.javalog.check.core.Checker;
import com.da.javalog.check.core.CheckerChain;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author joker
 * @date 2020/04/28
 */
@Component
@CheckBean(rule = CheckRule.TEST_RULE2)
@Slf4j
public class TestChecker2 implements Checker<TestContext> {
    @Override
    public void check(TestContext testContext, CheckerChain<TestContext> checkChain) throws CheckException {

        System.out.println("TestChecker2");

        checkChain.check(testContext, checkChain);
    }
}
